<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<form action="" method="post">
    {% csrf_token %}
    学生姓名<input type="text" name="stu_name">
    <br>
    假条事由<input type="text" name="context">
    <br>
    请假时间<input type="date" name="createtime">
    <br>
    请假类型<select name="tid" >
        {% for i in stu %}
        <option value="{{ i.id }}">{{ i.tname }}</option>
        {% endfor %}
    </select>
    <br>
    <input type="submit" value="添加">
</form>
</body>
</html>